:root {
  --vp-c-brand-1: #646cff;
  --vp-c-brand-2: #747bff;
}

/* 代码执行实体 */
.entity {
  border: 1px solid #dedede;
  padding: 20px;
  border-radius: 5px;
}

/* 继承主题色 */
.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner {
  background-color: var(--vp-c-bg) !important;
}

/**
 * 覆盖 vitePress自带的table样式
 * -------------------------------------------------------------------------- */
.api-table table {
  display: block;
  margin: 0;
  overflow-x: auto;
}

.api-table tr {
  background-color: var(--vp-c-bg) !important;
  border-top: inherit;
  transition: background-color 0.5s;
}

.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
  background-color: var(--vp-sidebar-bg-color) !important;
}

.api-table th,
.api-table td {
  border: inherit;
  padding: inherit;
}

.el-table th.el-table__cell {
  background-color: unset !important;
}

.el-table__empty-block {
  background-color: var(--vp-c-bg) !important;
}

.el-table__body tr.hover-row.current-row>td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,
.el-table__body tr.hover-row>td.el-table__cell,
.el-table__body tr>td.hover-cell {
  background-color: var(--vp-sidebar-bg-color) !important;
}